/*
 * Util.cpp
 *
 *  Created on: 24-03-2013
 *      Author: Jarek
 */

#include "Util.h"
#include <time.h>

/**
 * get current time in miliseconds.
 */
double Util::getTime() {
    struct timespec res;
    clock_gettime(CLOCK_REALTIME, &res);
    return ((res.tv_sec * 1000) + (res.tv_nsec / 1000000));
}

